<template>
  <el-card class="box-card">
    <div slot="header">
      <span class="title-tag"> <i class="el-icon-warning-outline"></i> {{title}}</span>
      <el-button style="float: right; padding: 3px 0; font-size: 18px;" v-if="showMore" icon="el-icon-arrow-down"
        type="text">
      </el-button>
    </div>
    <div class="main">
      <slot></slot>
    </div>
  </el-card>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    },
    showMore: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.box-card {
  margin-bottom: 20px;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: '';
}

.clearfix:after {
  clear: both;
}

.title-tag {
  font-size: 18px;
  color: #1479d7;
}
</style>
